package com.example.accessibilityhelper.util;

import android.content.Context;
import android.util.DisplayMetrics;

public class ScreenUtil {

    private static int screenWidth = 0;
    private static int screenHeight = 0;

    public static void init(Context context) {
        DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();
        screenWidth = displayMetrics.widthPixels;
        screenHeight = displayMetrics.heightPixels;
    }

    public static int getScreenWidth() {
        return screenWidth;
    }

    public static int getScreenHeight() {
        return screenHeight;
    }
}
